package com.itcncp.ucenter.rpc.api;

import com.itcncp.common.base.BaseService;
import com.itcncp.ucenter.dao.model.UserAccountInfo;
import com.itcncp.ucenter.dao.model.UserAccountInfoExample;

import java.math.BigDecimal;

/**
* UserAccountInfoService接口
* Created by itcncp on 2018/1/12.
*/
public interface UserAccountInfoService extends BaseService<UserAccountInfo, UserAccountInfoExample> {

    /**
     * 更新提现状态
     * @param orderno
     * @param type 1失败 3成功
     * @return 1失败 2成功
     */
    Integer cashinOpJnlState(String orderno, Integer type);


    /**
     * 用户提现
     * @param userId
     * @param amount 提现金额
     * @param bankcardNo  卡号
     * @param bankId   银行编号
     * @param authName 姓名
     * @param bankcardType 银行卡种类
     * @return
     */
    UserAccountInfo withdrawals(Long userId, BigDecimal amount, String bankcardNo, String bankId,
                                       String authName, Integer bankcardType);
}